package com.tiantian.quanminxiu.event;

import com.tiantian.quanminxiu.model.ChatMessage;

import org.json.JSONObject;

/**
 * Created by admin on 2016/9/5.
 */
public class SocketStateEvent {
    public SocketStateEvent(int socketTyep) {
        this.socketTyep = socketTyep;
    }

    public SocketStateEvent(int socketTyep, JSONObject jsonObject) {
        this.socketTyep = socketTyep;
        this.jsonObject = jsonObject;
    }

    public JSONObject getJsonObject() {
        return jsonObject;
    }

    public void setJsonObject(JSONObject jsonObject) {
        this.jsonObject = jsonObject;
    }

    private ChatMessage chatMessage;
    private JSONObject jsonObject;
    private int socketTyep;

    public int getSocketTyep() {
        return socketTyep;
    }

    public void setSocketTyep(int socketTyep) {
        this.socketTyep = socketTyep;
    }

    public ChatMessage getChatMessage() {
        return chatMessage;
    }

    public void setChatMessage(ChatMessage chatMessage) {
        this.chatMessage = chatMessage;
    }
}
